<%@page contentType="application/json;charset=UTF-8" %><%@page import="be.destin.skos.core.SkosManager" %><%@page import="be.destin.skos.html.SkosHtmlManager" %><%@page import="be.destin.skos.core.SchemeInterface" %><%@page import="be.destin.skos.core.Concept" %><%@page import="be.destin.skos.core.XmlSource" %><%
	SkosHtmlManager skosHtmlManager = SkosHtmlManager.getAskosiSessionInstance(request);
	SkosManager skosManager = skosHtmlManager.getSkosManager();
	String conceptCode = request.getParameter("about");
	Concept aConcept = skosManager.getScheme_Concept(conceptCode);
	if (aConcept != null) {
		XmlSource.marshallConceptJSON(aConcept, out);
	} else {
	%>{"concept":{"error":"not loaded","about":"<%=conceptCode%>"}}<%
	}
%>
